/**
 * 
 */
package org.statewalker.fsm.providers.conf;

import org.statewalker.fsm.providers.FsmTransitionsConst;
import org.statewalker.fsm.providers.IFsmTransitionsRegistry;

public class FsmTransitionsConfigurator<SK, EK>
    extends
    AbstractFsmTransitionsConfigurator<SK, EK> {

    private IFsmTransitionsRegistry<SK, EK> fRegistry;

    public FsmTransitionsConfigurator(
        FsmTransitionsConst<SK, EK> info,
        IFsmTransitionsRegistry<SK, EK> registry) {
        super(info);
        fRegistry = registry;
    }

    @Override
    protected IFsmTransitionsRegistry<SK, EK> getFsmTransitionsRegistry(SK state) {
        return fRegistry;
    }

    /**
     * @return the registry
     */
    public IFsmTransitionsRegistry<SK, EK> getRegistry() {
        return fRegistry;
    }

    /**
     * @param registry the registry to set
     */
    protected void setRegistry(IFsmTransitionsRegistry<SK, EK> registry) {
        fRegistry = registry;
    }

}